package net.huashitong.ssydt.money.entity.vo;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author hemj
 * @version 2017/8/21
 */
public class SsMoneyGoldRecordInVO implements Serializable {

	private String userId;//用户Id
	@NotBlank(message = "操作不能为空")
	private String operation;//操作
	@NotNull(message = "金币不能为空")
	@Min(value = 0, message = "金币不能为负数")
	private Long goldNumber;//金额

	private String description;//描述

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public Long getGoldNumber() {
		return goldNumber;
	}

	public void setGoldNumber(Long goldNumber) {
		this.goldNumber = goldNumber;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
